package com.lqian.service.depart;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lqian.mapper.DepartMapper;
import com.lqian.pojo.Depart;

@Service
public class DepartServiceImpl implements DepartService{

	
	@Autowired
	private DepartMapper departMapper;

	public List<Depart> getAllDepart() {
		return departMapper.getAllDepart();
	}

	public void addDepart(Depart depart) {
		departMapper.addDepart(depart);	
	}

	public Integer updateDepart(Depart depart) {
		return departMapper.updateDepart(depart);
	}

	public Integer deleteDepart(Integer did) {
		return departMapper.deleteDepart(did);
	}

	public Integer resDepart(Integer did) {
		return departMapper.resDepart(did);
	}

	public Depart findDepartByDid(Integer did) {
		return departMapper.findDepartByDid(did);
	}
	
	
	
 	
}
